<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
    <title>Se connecter</title>
</h:head>
<h:body>
    <h1>Connection</h1>
    <h2>Coucou is a french website that helps you find your friends and shares your emotions together</h2>
    <hr/>
    
    <h:form>
        <h:messages showDetail="true"/>
        <table border="0">
            <tr>
                <td><h:outputLabel value="Username : "/></td>
                <td><h:inputText value="#{loginController.user.username}"/></td>
            </tr>
            <tr>
                <td><h:outputLabel value="Password : "/></td>
                <td><h:inputSecret value="#{loginController.user.password}"/></td>
            </tr>
        </table>
        <h:commandButton value="Connection" action="#{loginController.doLogin}"/>
    </h:form>
    or
    <a href="inscription.xhtml">Register</a>
    <hr/>
</h:body>
</html>
